package com.example.red_tea_house.util;

import android.content.SharedPreferences;

import androidx.appcompat.app.AppCompatActivity;

import static android.content.Context.MODE_PRIVATE;

public class TestUtil {
    public static void clearSharedPreferences(AppCompatActivity activity,String SharedPreferencesName){
        SharedPreferences.Editor editor=activity.getSharedPreferences(SharedPreferencesName,MODE_PRIVATE).edit();
        editor.clear();
        editor.apply();
    }
}
